<?php
/**
 * 销售物料基础物料关联数据结构
 *
 * @author kamisama.xia@gmail.com 
 * @version 0.1
 */

$db['sales_basic_material']=array (
  'columns' =>
  array (
    'sm_id' =>
    array (
      'type' => 'int unsigned',
      'required' => true,
      'width' => 110,
      'hidden' => true,
      'editable' => false,
    ),
    'bm_id' =>
    array (
      'type' => 'int unsigned',
      'required' => true,
      'width' => 110,
      'hidden' => true,
      'editable' => false,
    ),
    'number' =>
    array (
      'type' => 'number',
      'editable' => false,
      'label' => '数量',
      'default' => 1,
      'hidden' => true,
    ),
    'rate' =>
    array (
      'type' => 'tinyint(1)',
      'editable' => false,
      'label' => '促销类单品物料价格贡献占比',
      'default' => 100,
      'hidden' => true,
    ),
  ),
  'comment' => '销售物料与基础物料关联表',
  'engine' => 'innodb',
  'version' => '$Rev:  $',
);
